package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.WendaQuestionContent;
import cn.wolfcode.luowowo.article.mapper.WendaQuestionContentMapper;
import cn.wolfcode.luowowo.article.service.IWendaQuestionContentService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class WendaQuestionContentServiceImpl implements IWendaQuestionContentService {

    @Autowired
    private WendaQuestionContentMapper wendaQuestionContentMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return wendaQuestionContentMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(WendaQuestionContent wendaQuestionContent) {
        return wendaQuestionContentMapper.insert(wendaQuestionContent);
    }

    @Override
    public WendaQuestionContent selectByPrimaryKey(Long id) {
        return wendaQuestionContentMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<WendaQuestionContent> selectAll() {
        return wendaQuestionContentMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(WendaQuestionContent wendaQuestionContent) {
        return wendaQuestionContentMapper.updateByPrimaryKey(wendaQuestionContent);
    }
}
